<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Bank>
 */
class BankFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition()
    {
        return [
            'name' => $this->faker->name(),
            'rate' => rand(3, 40),
            'max_loan' => rand(10000, 100000),
            'min_down_payment' => rand(100, 1000),
            'max_term' => rand(12, 36),
        ];
    }
}
